import { defineStore } from 'pinia'

export const useSimilarityStore = defineStore('similarity', {
  state: () => ({
    // 左发
    selectedSample: [],
    searchResults: [],
  }),

  actions: {
    // 更新左发A通道选择
    updateSelectedSample(sample: any) {
      this.selectedSample = sample
    },
    // 更新左发B通道选择
    updateSearchResult(result: any) {
      this.searchResults = result
    },

    // 重置所有选择
    resetSelections() {
      this.selectedSample = []
      this.searchResults = []
    }
  },

  
})
